// import "@/style.scss";
import App from "./App.vue";
import router from "./router";
import { createPinia } from "pinia";
import { ElMessage } from "element-plus";
import { btnPermission } from "./directive/btnPermission";
import waterMark from "./directive/waterMark";
import "./utils/http";
import { registerStore } from "./store";
import loadElementIcon from "./plugins/loadElementIcon";
import "@/assets/css/reset.css";
import permissionToken from "./utils/permissionToken";
const app = createApp(App);
app.use(createPinia());
app.config.globalProperties.$message = ElMessage;
loadElementIcon(app);
app.use(router);
permissionToken();
registerStore();
app.directive("permissions", btnPermission);
app.directive("waterMark", waterMark);
app.mount("#app");
